<template>
	<view>
		<web-view :src="goUrl"></web-view>
	</view>
</template>

<script>
	import {
		$storage
	} from '@/utils'
	export default {
		data() {
			return {
				goUrl: '',
				title: '柔宇星球'
			}
		},
		created: function() {
			console.log('created')
		},
		mounted: function() {

		},
		onShow: function() {

		},
		onLoad: function(e) {
			const token = $storage.get('passportToken')
			const device_id = $storage.get('rouyu-device-id')
			const uid = $storage.get("rouyu-user-id").toString()
			console.log(uid)
			// const appid = getAppId() ? getAppId() : '{{APP_ID}}'
			const url =
				`https://mms-client.vercel.app/activity/${e.activityId}?token=${token}&app_id=1258518235024855040&device_id=${device_id}&uid=${uid}&is_sns=true`
			this.goUrl =decodeURIComponent(url);
			console.log(url)
		},
		methods: {

		},
	}
</script>

<style>
</style>
